// api/paper2/strategy.js
import request from '@/utils/request'

export function pageStrategy(params) {
  return request({
    url: '/paper2/strategy/list',
    method: 'get',
    params
  })
}

export function getStrategy(id) {
  return request({
    url: `/paper2/strategy/${id}`,
    method: 'get'
  })
}

export function saveStrategy(data) {
  return request({
    url: '/paper2/strategy',
    method: data.id ? 'put' : 'post',
    data
  })
}

export function deleteStrategy(ids) {
  return request({
    url: '/paper2/strategy/' + ids.join(','),
    method: 'delete'
  })
}
